jwt

fun jwt(jwtToken: String): Credentials

Creates credentials representing a login using a JWT Token. This token is normally generated after a custom OAuth2 login flow.

This provider must be enabled on MongoDB Realm to work.

Return

a set of credentials that can be used to log into MongoDB Realm using App.login.

Parameters

jwtToken

the jwt token returned after a custom login to a another service.